package com.hupu.jrs.ui.main

import com.hupu.jrs.injector.PerActivity
import com.hupu.jrs.injector.component.ApplicationComponent
import com.hupu.jrs.injector.module.ActivityModule
import com.hupu.jrs.ui.forum.ForumListFragment
import com.hupu.jrs.ui.thread.collect.CollectThreadListFragment
import com.hupu.jrs.ui.thread.recommend.RecommendThreadListFragment
import dagger.Component

/**
 * Created by sll on 2016/5/13.
 */
@PerActivity
@Component(dependencies = arrayOf(ApplicationComponent::class), modules = arrayOf(ActivityModule::class, MainModule::class))
interface MainComponent {

    fun inject(activity: MainActivity)

    fun inject(fragment: CollectThreadListFragment)

    fun inject(fragment: RecommendThreadListFragment)

    fun inject(fragment: ForumListFragment)
}
